package com.tms.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.operation.mapper.TmsPickupMapper;
import com.tms.operation.domain.TmsPickup;
import com.tms.operation.service.ITmsPickupService;

/**
 * 提货单Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-25
 */
@Service
public class TmsPickupServiceImpl implements ITmsPickupService
{
    @Autowired
    private TmsPickupMapper tmsPickupMapper;

    /**
     * 查询提货单
     *
     * @param id 提货单主键
     * @return 提货单
     */
    @Override
    public TmsPickup selectTmsPickupById(Long id)
    {
        return tmsPickupMapper.selectTmsPickupById(id);
    }

    /**
     * 查询提货单列表
     *
     * @param tmsPickup 提货单
     * @return 提货单
     */
    @Override
    public List<TmsPickup> selectTmsPickupList(TmsPickup tmsPickup)
    {
        return tmsPickupMapper.selectTmsPickupList(tmsPickup);
    }

    /**
     * 新增提货单
     *
     * @param tmsPickup 提货单
     * @return 结果
     */
    @Override
    public int insertTmsPickup(TmsPickup tmsPickup)
    {
        return tmsPickupMapper.insertTmsPickup(tmsPickup);
    }

    /**
     * 修改提货单
     *
     * @param tmsPickup 提货单
     * @return 结果
     */
    @Override
    public int updateTmsPickup(TmsPickup tmsPickup)
    {
        return tmsPickupMapper.updateTmsPickup(tmsPickup);
    }

    /**
     * 批量删除提货单
     *
     * @param ids 需要删除的提货单主键
     * @return 结果
     */
    @Override
    public int deleteTmsPickupByIds(Long[] ids)
    {
        return tmsPickupMapper.deleteTmsPickupByIds(ids);
    }

    /**
     * 删除提货单信息
     *
     * @param id 提货单主键
     * @return 结果
     */
    @Override
    public int deleteTmsPickupById(Long id)
    {
        return tmsPickupMapper.deleteTmsPickupById(id);
    }
}

